<?php
namespace app\index\controller;

use think\facade\Config;
use think\captcha\Captcha;

class Index extends Core
{
    public function index()
    {
        return $this->fetch('index');
    }

    public function verify()
    {
        $config = Config::get('captcha.');
        // return json($config);
        $captcha = new Captcha($config);
        // $captcha->fontSize = 30;
        // $captcha->length   = 3;
        // $captcha->useNoise = false;
        return $captcha->entry();
    }
}
